package com.tudouji.project.copy.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.copy.mapper.DataexStopedtransMapper;
import com.tudouji.project.copy.domain.DataexStopedtrans;
import com.tudouji.project.copy.service.IDataexStopedtransService;
import org.springframework.transaction.annotation.Transactional;

/**
 * 拉取失败数据Service业务层处理
 *
 * @author tudouji
 * @date 2022-05-24
 */
@Service
public class DataexStopedtransServiceImpl implements IDataexStopedtransService {
    @Autowired
    private DataexStopedtransMapper dataexStopedtransMapper;

    /**
     * 查询拉取失败数据
     *
     * @param id 拉取失败数据ID
     * @return 拉取失败数据
     */
    @Override
    public DataexStopedtrans selectDataexStopedtransById(Long id) {
        return dataexStopedtransMapper.selectDataexStopedtransById(id);
    }

    /**
     * 查询拉取失败数据列表
     *
     * @param dataexStopedtrans 拉取失败数据
     * @return 拉取失败数据
     */
    @Override
    public List<DataexStopedtrans> selectDataexStopedtransList(DataexStopedtrans dataexStopedtrans) {
        return dataexStopedtransMapper.selectDataexStopedtransList(dataexStopedtrans);
    }

    /**
     * 新增拉取失败数据
     *
     * @param dataexStopedtrans 拉取失败数据
     * @return 结果
     */
    @Override
    @Transactional
    public int insertDataexStopedtrans(DataexStopedtrans dataexStopedtrans) {
        dataexStopedtrans.setCreateDate(new Date());
        return dataexStopedtransMapper.insertDataexStopedtrans(dataexStopedtrans);
    }

    /**
     * 修改拉取失败数据
     *
     * @param dataexStopedtrans 拉取失败数据
     * @return 结果
     */
    @Override
    public int updateDataexStopedtrans(DataexStopedtrans dataexStopedtrans) {
        return dataexStopedtransMapper.updateDataexStopedtrans(dataexStopedtrans);
    }

    /**
     * 批量删除拉取失败数据
     *
     * @param ids 需要删除的拉取失败数据ID
     * @return 结果
     */
    @Override
    public int deleteDataexStopedtransByIds(Long[] ids) {
        return dataexStopedtransMapper.deleteDataexStopedtransByIds(ids);
    }

    /**
     * 删除拉取失败数据信息
     *
     * @param id 拉取失败数据ID
     * @return 结果
     */
    @Override
    public int deleteDataexStopedtransById(Long id) {
        return dataexStopedtransMapper.deleteDataexStopedtransById(id);
    }

    @Override
    public void deleteDataexStopedtransByWhinId(Long autoid) {
        dataexStopedtransMapper.deleteDataexStopedtransByWhinId(autoid);
    }

    @Override
    public void deleteDataexStopedtransByWhoutId(Long autoid) {
        dataexStopedtransMapper.deleteDataexStopedtransByWhoutId(autoid);
    }

    @Override
    public void deleteDataexStopedLargeWhinId() {
        dataexStopedtransMapper.deleteDataexStopedLargeWhinId();
    }

    @Override
    public void deleteDataexStopedLargeWhoutId() {
        dataexStopedtransMapper.deleteDataexStopedLargeWhoutId();
    }
}
